package com.xyoto.community.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;

@Data
@ApiModel("新增话题实体")
public class SaveTopicDTO {

    @ApiModelProperty("话题标题")
    @NotBlank(message = "给话题起个标题吧")
    private String title;

    @ApiModelProperty("话题描述内容")
    @NotBlank(message = "话题描述内容不能为空")
    private String content;

    @ApiModelProperty("话题图片路径")
    @NotBlank(message = "话题图片路径不能为空")
    private String path;
}
